<?php if(DEBUG){ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?=$this->baseUrl?>/public/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="<?=$this->baseUrl?>/public/css/icons.css" /> 
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ext-base.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ext-all-debug.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/XmlTreeLoader.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/menu/EditableItem.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/menu/RangeMenu.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/GridFilters.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/filter/Filter.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/filter/StringFilter.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/filter/DateFilter.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/filter/ListFilter.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/filter/NumericFilter.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/filter/BooleanFilter.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/lightbox.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/RowExpander.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ben/showresult.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ben/ux/ComboBoxCheckTree.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ben/ux/TreeCheckNodeUI.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ux/DDView.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ux/ItemSelector.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ux/MultiSelect.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ux/GroupSummary.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl?>/public/js/ux/FileUploadField.js"></script>
<? } ?>

<script type="text/javascript">
Ext.onReady(function(){
					
					 
				
var module="";
var ExtId=Ext.id();
var baseUrl="<?=$this->baseUrl?>";
var time="<?=date('y-m-d h:i:s')?>";
Ext.BLANK_IMAGE_URL = '<?=$this->baseUrl?>/public/images/default/s.gif';
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());	
Ext.QuickTips.init();

//客户下拉combo
var client_combo_store=new Ext.data.JsonStore({
																	  url:baseUrl+'/link/serverclient/',
																	  totalProperty: 'total',
																	  root:'results',
																	  fields:['client_id','client_company','client_host']
																	}); 
client_combo_store.on("load",function(ds,record,o){
										client_combo.setValue(record[0].data.client_id);
										});
//关键字下拉combo
var keyword_combo_store=new Ext.data.JsonStore({
																	  url:baseUrl+'/link/serverkeyword/',
																	  root:'results',
																	  fields:['keyword_id','keyword_name','keyword_link']
																	  }); 

//行业下拉combo
var industry_combo_store=new Ext.data.JsonStore({
																	  url:baseUrl+'/link/serverindustry',
																	  root:'results',
																	  fields:['industry_name','industry_id']
																	  });
industry_combo_store.on("load",function(ds,record,o){
										industry_combo.setValue(record[0].data.industry_name);
										});
//链接类型
var linktype_combo_store=new Ext.data.JsonStore({
																	  url:baseUrl+'/link/serverlinktype',
																	  root:'results',
																	  fields:['linktype_id','linktype_name']
																	  });
//网站类型
var site_combo_store=new Ext.data.JsonStore({
																	  url:baseUrl+'/link/serversite',
																	  root:'results',
																	  fields:['site_id','site_type']
																	  });
site_combo_store.on("load",function(ds,record,o){
										site_combo.setValue(record[0].data.site_id);
										});